package com.aaa.hospital.nurse.service.Impl;

import com.aaa.hospital.nurse.mapper.BedsMapper;
import com.aaa.hospital.nurse.pojo.Beds;
import com.aaa.hospital.nurse.service.BedsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BedsServiceImpl implements BedsService {
    @Autowired
    private BedsMapper mapper;

    @Override
    public List<Beds> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public List<Beds> selectById(int id) {
        return mapper.selectById(id);
    }

    @Override
    public void update1(int bfid, int bedid) {
        mapper.update1(bfid, bedid);
    }
}
